<template>
  <div>
<!--    使用路由的方法   来实现页面中的固定-->
    <router-view></router-view>
<!--    <template>-->
<!--      <van-tabbar placeholder="true" v-model="active">-->
<!--        <van-tabbar-item icon="home-o" to="hello">首页</van-tabbar-item>-->
<!--        <van-tabbar-item icon="goods-collect-o" to="vantcoms">收藏</van-tabbar-item>-->
<!--        <van-tabbar-item icon="orders-o" to="order">订单</van-tabbar-item>-->
<!--        <van-tabbar-item icon="contact" to="homePage" >我的</van-tabbar-item>-->
<!--      </van-tabbar>-->
<!--    </template>-->
  </div>
 </template>

<script>
  import { Tabbar, TabbarItem } from 'vant';

  export default {
    name: "TabbarComs",
    components: {
      // [Tabbar.name]:Tabbar,
      // [TabbarItem.name]:TabbarItem
    },
    data() {
      return {
        // active: 0,
        // message: "点击就会改变值！",
        // images: [
        //   require('@/assets/img/Carousel2.png'),
        //   require('@/assets/img/Carousel4.png'),
        //   require('@/assets/img/Carousel3.png')
        // ],
        // gongge: [
        //   require('@/assets/aili/biaoqing.png'),
        //   require('@/assets/aili/dunpai.png'),
        //   require('@/assets/aili/kapian-01.png'),
        //   require('@/assets/aili/paizhao.png'),
          // require('@/assets/aili/qiandao-01.png'),
          // require('@/assets/aili/songliwu-01.png'),
          // require('@/assets/aili/sousuofangjian-01.png'),
          // require('@/assets/aili/toutouzi-01.png')
        // ]
      }
    },
    mounted() {
      this.getCurrentLocation()
    },
    methods: {
      getCurrentLocation() {
        console.log(this.$route.path)
      },
    },

  }

</script>

<style>

</style>
